﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PTUDW_CNTN2010_F_CDT.Models;

namespace PTUDW_CNTN2010_F_CDT.Controllers
{
    public class AdController : Controller
    {
        EcommerceDBContext db = new EcommerceDBContext();

        [ChildActionOnly]
        public ActionResult LeftSideBar()
        {
            return PartialView(db.Ads);
        }

        [ChildActionOnly]
        public ActionResult RightSideBar()
        {
            return PartialView(db.Ads);
        }
    }
}
